package com.ocom.payconfig.controller;

import com.ocom.common.constant.PayConfigUrl;
import com.ocom.common.resp.Result;
import com.ocom.common.utils.ResultUtil;
import com.ocom.payconfig.service.AppConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description: TODO
 * @Author: 朱晖
 * @Date: 2022/8/10
 **/
@RestController
public class AppConfigController {

	@Autowired
	private AppConfigService appConfigService;

	/**
	 * 公众号权限
	 * @param companyId
	 * @return
	 */
	@PostMapping(PayConfigUrl.Url_getAppConfig)
	public Result getConfig(Long companyId){
		return ResultUtil.success(appConfigService.getAppConfig(companyId));
	}

}
